package cn.tedu.erp.project.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AdminUpdateDTO implements Serializable {
    @ApiModelProperty(value = "管理员名称", required = true, example = "演示数据001")
    @NotNull(message = "修改管理员失败,必须填写用户名!")
    /*管理员账户*/
    private String username;
    @ApiModelProperty(value = "管理员密码", required = true, example = "123456")
    @NotNull(message = "修改管理员失败,必须填写密码!")
    /*管理员密码*/
    private String password;
    @ApiModelProperty(value = "管理员昵称", required = true, example = "测试数据")
    @NotNull(message = "修改管理员失败,必须填写昵称!")
    /*管理员昵称*/
    private String nickname;
    @ApiModelProperty(value = "管理员头像", required = true, example = "http://123456.com")
    @NotNull(message = "修改管理员失败,必须填写头像!")
    /*管理员头像url*/
    private String avatar;
    @ApiModelProperty(value = "管理员电话", required = true, example = "15115215377")
    @NotNull(message = "修改管理员失败,必须填写电话!")
    /*管理员电话*/
    private String phone;
    @ApiModelProperty(value = "管理员邮箱", required = true, example = "12306@163.com")
    @NotNull(message = "修改管理员失败,必须填写邮箱!")
    /*管理员邮箱*/
    private String email;
    @ApiModelProperty(value = "管理员简介", required = true, example = "网络部")
    @NotNull(message = "修改管理员失败,必须填写简介!")
    /*管理员简介*/
    private String description;
    @ApiModelProperty(value = "部门角色", required = true, example = "")
    /*用户对应的部门*/
    private Long[] deptIds;

}
